#!/bin/sh
inputFile=$1
#echo "inputFile=$inputFile"
outdir=$2
#echo "outdir=$outdir"
fileType=$3
#echo "fileType=$fileType"
outFile=$4
#echo "outFile=$outFile"
renamedFile=$5
#echo "renamedFile=$renamedFile"
# convert word
libreoffice --headless --convert-to $fileType $inputFile --outdir $outdir
#ls $outdir > ~/before.txt
# rename outfilename
mv $outFile $renamedFile
#ls $outdir > ~/after.txt
exit 2